#include "head.h"

int main(void)
{
    // 创建线程池
    Pool pool;
    initPool(&pool,4);
    // 创建网络监听
    int SockFd;
    initTcpSocket(&SockFd,"192.168.12.129","8080");
    // 加入epoll监听
    int EpollFd = epoll_create(1);
    epollAdd(EpollFd,SockFd);

    while(true)
    {
        struct epoll_event Events[10];
        int Num = epoll_wait(EpollFd,&Events,10,-1);
        
        for(int i = 0;i < Num;i++)
        {
            if(Events[i].data.fd == SockFd)
            {
                int NetFd = accept(SockFd,NULL,NULL);
                
                pthread_mutex_lock(&Poll.pthread_mutex_lock);

            }
            else
            {

            }

        }



    }

    return 0;
}
